<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改后返回的视图查看1被修改的数据</title>

</head>
<body>
    <h3>普通表达式</h3>
    <p th:text="${goods.name}"></p>
<!--    处理日期格式 ${#dates.format(goods.birthday,'yyyy-MM-dd')}-->
    <p th:text="${#dates.format(goods.birthday,'yyyy-MM-dd')}"></p>
    <p th:text="${goods.age}"></p>
    <hr>
    <h3>链接表达式</h3>
    <div th:object="${goods}">
        姓名：<span th:text="*{name}"></span><br>
        年龄：<span th:text="*{age}    "></span><br>
        生日：<span th:text="*{#dates.format(birthday,'yyyy-MM-dd')}"></span><br>
    </div>
</body>
</html>